function xscrack ( hBlock )

%XSCRACK Summary of this function goes here
%
%   XSCRACK(varagin) Detailed explanation goes here
%
%   Inputs:
%      hBlock       the block handle
%
%   Outputs:
%       --/--
%
%   Syntax:
%       xscrack(hBlock)
%
%   Example:
%       xscrack(gcb)
%
%   See also:
%
% 
%   Author(s): Xiaobiao Huang
%   Copyright 2013-2020 The Xiaobiao Studio.
%   $Revision: 1.0.0.0 $  $Date: 17-Sep-2013 21:23:54 $

maskType = get_param(hBlock, 'MaskType');
crackBlockTypeList = {...
                'TL_Inport' ,...
                'TL_Outport' ,...
                'TL_Constant' ,...
                'TL_Sum' ,...
                'TL_Gain' ,...
                'TL_Product' ,...
                'TL_LogicalOperator' ,...
                'TL_RelationalOperator' ,...
                'TL_Fcn' ,...
                'TL_Lookup1D' ,...
                'TL_Lookup2D' ,...
                'TL_LookupNDDirect' ,...
                'TL_PreLookup' ,...
                'TL_Interpolation_n-D' ,...
                'TL_Assignment' ,...
                'TL_Saturate' ,...
                'TL_MinMax' ,...
                'TL_Abs' ,...
                'TL_Signum' ,...
                'TL_RateLimiter' ,...
                'TL_Relay' ,...
                'TL_Trigonometry' ,...
                'TL_Math' ,...
                'TL_Sqrt' ,...
                'TL_UnitDelay' ,...
                'TL_DiscreteTransferFcn' ,...
                'TL_DiscreteFilter' ,...
                'TL_FIRFilter' ,...
                'TL_DiscreteIntegrator' ,...
                'TL_DiscreteStateSpace' ,...
                'TL_DataStoreWrite' ,...
                'TL_DataStoreMemory' ,...
                'TL_DataStoreRead' ,...
                'TL_CustomCode' ,...
                'TL_Merge' ,...
                'TL_Sink' ,...
                'TL_BitClear' ,...
                'TL_BitSet' ,...
                'TL_BitwiseOperator' ,...
                'TL_ExtractBits' ,...
                'TL_ShiftArithmetic' ,...
                'TL_BusInport' ,...
                'TL_BusOutport' ,...
                'TL_Rescaler' ,...
                'TL_Switch' ,...
                'TL_MultiPortSwitch' ,...
                'TL_UnitDelayRE' ,...
                'TL_Constant' ,...                
                };

if strmatch(maskType,crackBlockTypeList)
    tl_pref('set', 'blockLibMode', 0);
end

end % end of function  xscrack
